﻿
@using Abp.Web.Mvc.Extensions
@using MyCompanyName.AbpZeroTemplate.Web.Navigation
@using MyCompanyName.AbpZeroTemplate.Web.Bundling
@using System.Threading
@using System.Web.Optimization
@using Abp.Extensions
@using Abp.MultiTenancy
@using Abp.Timing
@using Abp.Web.Mvc.Extensions
@using MyCompanyName.AbpZeroTemplate.Features
@using MyCompanyName.AbpZeroTemplate.Localization
@model  MyCompanyName.AbpZeroTemplate.SystemSetting.Dto.SystemSettingDto

@{
    ViewBag.CurrentPageName = PageNames.App.SystemManager.SystemSetting;
}

@Html.IncludeScript("~/Areas/Mpa/Views/System/CreteOrUpdate.js")
<style>
    .divflow {
        margin-left: -40px;
        margin-right: 0px;
    }
</style>
<div class="row">
    <div class="col-md-12">
        <div class="portlet light form-fit bordered">
            <div class="portlet-title" style="padding:8px 0px 0px 0px!important;">
                <!--标题-->
                <div class="col-md-3">
                    <div class="caption font-dark" style="padding-top:10px;font-size:15px;">
                        <i class="icon-settings font-dark"></i>
                        <span class="caption-subject bold uppercase"> 新增系统设置</span>
                    </div>
                </div>
                <div class="col-md-4">

                </div>
                <div class="col-md-3">

                </div>
                <div class="col-md-2">
                    <div class="btn-group" style="float:right;">
                        <button type="button" class="btn blue" onclick="history.back(-1);">返回</button>
                    </div>
                </div>

            </div>
            <div style="background-color:#0066b3;width:100%;height:2px;">
            </div>
            <!--内容-->
            <div class="portlet-body">
                <form action="#" id="form_sample_1" class="form-horizontal" novalidate="novalidate" style="overflow:hidden;">
                    <div class="form-body" style="overflow:hidden;">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group divflow">
                                    <label class="control-label col-md-4">
                                        参数名称
                                        <span class="required" aria-required="true"> * </span>
                                    </label>
                                    <div class="col-md-6">
                                        <input id="ParameternameId" type="text" class="form-control" placeholder="参数名称" value="@Model.Parametername">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                @if (@Model.Id != 0)
                                {
                                    <input type="text" id="SystemSettingId" value="@Model.Id" hidden="hidden">
                                }
                                else
                                {
                                    <input type="text" id="SystemSettingId" value="0" hidden="hidden">
                                }
                            </div>

                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group divflow">
                                    <label class="control-label col-md-4">
                                        参数值
                                        <span class="required" aria-required="true"> * </span>
                                    </label>
                                    <div class="col-md-6">
                                        <input type="text" id="ParametervalueId" data-required="1" class="form-control" placeholder="参数值" value="@Model.Parametervalue">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group divflow">
                                    <label class="control-label col-md-4">
                                        状态
                                        <span class="required" aria-required="true"> * </span>
                                    </label>
                                    <div class="col-md-6">
                                        @*<input type="text" id="StatusId" class="form-control" placeholder="状态" value="@Model.Status">*@
                                        @if (@Model.Status == 0)
                                        {
                                            <label><input name="Status" type="radio" value="0" checked />禁用 </label>
                                            <label><input name="Status" type="radio" value="1" />启用 </label>
                                        }
                                        else if (true)
                                        {
                                            <label><input name="Status" type="radio" value="0" />禁用 </label>
                                            <label><input name="Status" type="radio" value="1" checked/>启用 </label>
                                        }
                                        
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-actions" style="border-top:1px solid #0066b3;padding:20px;margin:0;">
                        <div class="row">
                            <div class="col-md-offset-10 col-md-9">
                                <button type="button" class="btn green" onclick="CreateSave();">提 交</button>
                                <button type="button" class="btn grey-salsa btn-outline" onclick="history.back(-1);">取 消</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
